<h2>Orders</h2>
<fieldset>
        <legend>Orders</legend>
<dl>
    <dt>Company</dt>
        <dd><?php echo $orders['Order']['company']; ?></dd>
    <dt>Email</dt>
        <dd><?php echo $orders['Order']['email']; ?></dd>
    <dt>Address</dt>
        <dd><?php echo $orders['Order']['address']; ?></dd>
    <dt>Delivered</dt>
        <dd><?php echo $orders['Order']['delivered']; ?></dd>
    <dt>Payed</dt>
        <dd><?php echo $orders['Order']['payed']; ?></dd>
    <dt>Orders Date</dt>
        <dd><?php echo $orders['Order']['created']; ?></dd>
</dl>
</fieldset>
<fieldset>
<table>
    <tr>
        <th>Products</th>
        <th>Size</th>
        <th>Quantity</th>
        <th>Price</th>
    </tr>
    <?php $total=0;?>
    <?php foreach($orders['OrdersProduct'] as $row): ?>
    <tr>
        <td><?php echo $row['product']; ?></td>
        <td><?php echo $row['size']; ?></td>
        <td><?php echo $row['quantity']; ?></td>
        <td><?php echo $row['price']; ?> €</td>
    </tr>
    <?php $total+=$row["price"]; ?>
    <?php endforeach;?>
</table>
<h6>Total: <?php echo $total; ?> €</h6>
</fieldset>